﻿<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"
				xmlns:MSHelp="http://msdn.microsoft.com/mshelp"
        xmlns:mshelp="http://msdn.microsoft.com/mshelp"
				xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5"
				xmlns:xlink="http://www.w3.org/1999/xlink"
        xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>
  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="diagram">
    <p align="left">
      <img src="{@imgpath}" usemap="#{@mapname}" />
      <map name="{@mapname}">
        <xsl:apply-templates select ="dimap"/>
      </map>
    </p>
  </xsl:template>

  <xsl:template match="dimap">
    <area shape="rect" coords="{@coords}" href="{@href}" />
  </xsl:template>

</xsl:stylesheet>
